package com.fanqwz.kotlinmvvm.presenter.viewmodel

import com.fanqwz.kotlinmvvm.domain.repo.IRepository
import java.util.*
import javax.inject.Inject

/**
 * Created by fanqwz on 2018/3/2.
 */
interface IModel : IRepository

open class BaseModel<T : IRepository> : IModel {
    @Inject
    lateinit var repo: T

    override fun getObservable(): Observable {
        return repo.getObservable()
    }
}